package com.wonders.framework.entity.vo;

import java.io.Serializable;

import org.hibernate.type.Type;

/**
 * 参数
 * 
 * @author WuBin
 * 
 */
public class Parameter implements Serializable {

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 值
	 */
	private Object value;

	/**
	 * 类型
	 */
	private Type type;

	public Parameter() {
	}

	public Parameter(Object value) {
		this.value = value;
	}

	public Parameter(String name, Object value) {
		this.name = name;
		this.value = value;
	}

	public Parameter(String name, Object value, Type type) {
		this.name = name;
		this.value = value;
		this.type = type;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Type getType() {
		return this.type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Object getValue() {
		return this.value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Parameter [name=" + name + ", type=" + type + ", value="
				+ value + "]";
	}

}
